import 'package:json_annotation/json_annotation.dart';
part 'EcyGoodsLabelModel.g.dart';

@JsonSerializable()
class EcyGoodsLabelModel {
  String? remark;
  String? name;
  String? id;
  String? iconUrl;
  String? code;
  EcyGoodsLabelModel(this.remark, this.name, this.id, this.iconUrl, this.code);

  // 从JSON创建User实例的工厂方法
  factory EcyGoodsLabelModel.fromJson(Map<String, dynamic> json) =>
      _$EcyGoodsLabelModelFromJson(json);

  // 将User实例转换为JSON的方法
  Map<String, dynamic> toJson() => _$EcyGoodsLabelModelToJson(this);
}
